<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Module: MasterMayI::InheritedResourcesExtensions::Filters</title>
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>

  </head>
  <body>
    <div id="header">
      <div id="menu">
  
    <a href="../../_index.html">Index (F)</a> &raquo; 
    <a title="MasterMayI" href="../../MasterMayI.html">MasterMayI</a> &raquo; <a title="InheritedResourcesExtensions" href="../InheritedResourcesExtensions.html">InheritedResourcesExtensions</a>
     &raquo; 
    <span class="title">Filters</span>
  
</div>

      <div id="search">
  <a id="class_list_link" href="#">Namespace List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Module: MasterMayI::InheritedResourcesExtensions::Filters 
  
  
</h1>

<dl class="box">
  
  
    
  
    
  
  
    <dt class="r1 last">Defined in:</dt>
    <dd class="r1 last">lib/master_may_i/inherited_resources_extensions.rb</dd>
  
</dl>
<div class="clear"></div>




  <h2>Method Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature"><a title="included (class method)" href="#included-class_method">+ (Object) <strong>included</strong>(controller) </a>
  
  </span>
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature"><a title="#ensure_can_create_record (instance method)" href="#ensure_can_create_record-instance_method">- (Object) <strong>ensure_can_create_record</strong> </a>
  
  </span>
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature"><a title="#ensure_can_destroy_record (instance method)" href="#ensure_can_destroy_record-instance_method">- (Object) <strong>ensure_can_destroy_record</strong> </a>
  
  </span>
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature"><a title="#ensure_can_edit_record (instance method)" href="#ensure_can_edit_record-instance_method">- (Object) <strong>ensure_can_edit_record</strong> </a>
  
  </span>
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature"><a title="#ensure_can_show_record (instance method)" href="#ensure_can_show_record-instance_method">- (Object) <strong>ensure_can_show_record</strong> </a>
  
  </span>
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
  </ul>



  <div id="method_details">
    <h2>Method Details</h2>
    
      <div class="method_details first">
  <p class="signature first" id="included-class_method">
  
    + (<tt>Object</tt>) <strong>included</strong>(controller) 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


7
8
9
10
11
12
13</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/master_may_i/inherited_resources_extensions.rb', line 7</span>

<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='included identifier id'>included</span><span class='lparen token'>(</span><span class='controller identifier id'>controller</span><span class='rparen token'>)</span>
  <span class='controller identifier id'>controller</span><span class='dot token'>.</span><span class='before_filter identifier id'>before_filter</span> <span class='symbol val'>:ensure_can_create_record</span><span class='comma token'>,</span>  <span class='symbol val'>:only</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='symbol val'>:new</span><span class='comma token'>,</span> <span class='symbol val'>:create</span><span class='rbrack token'>]</span>

  <span class='controller identifier id'>controller</span><span class='dot token'>.</span><span class='before_filter identifier id'>before_filter</span> <span class='symbol val'>:ensure_can_show_record</span><span class='comma token'>,</span>    <span class='symbol val'>:only</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='symbol val'>:show</span>
  <span class='controller identifier id'>controller</span><span class='dot token'>.</span><span class='before_filter identifier id'>before_filter</span> <span class='symbol val'>:ensure_can_edit_record</span><span class='comma token'>,</span>    <span class='symbol val'>:only</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrack token'>[</span><span class='symbol val'>:edit</span><span class='comma token'>,</span> <span class='symbol val'>:update</span><span class='rbrack token'>]</span>
  <span class='controller identifier id'>controller</span><span class='dot token'>.</span><span class='before_filter identifier id'>before_filter</span> <span class='symbol val'>:ensure_can_destroy_record</span><span class='comma token'>,</span> <span class='symbol val'>:only</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='symbol val'>:destroy</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="ensure_can_create_record-instance_method">
  
    - (<tt>Object</tt>) <strong>ensure_can_create_record</strong> 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


15
16
17</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/master_may_i/inherited_resources_extensions.rb', line 15</span>

<span class='def def kw'>def</span> <span class='ensure_can_create_record identifier id'>ensure_can_create_record</span>
  <span class='deny_access identifier id'>deny_access</span> <span class='unless unless_mod kw'>unless</span> <span class='resource_class identifier id'>resource_class</span><span class='dot token'>.</span><span class='creatable? fid id'>creatable?</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="ensure_can_destroy_record-instance_method">
  
    - (<tt>Object</tt>) <strong>ensure_can_destroy_record</strong> 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


27
28
29</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/master_may_i/inherited_resources_extensions.rb', line 27</span>

<span class='def def kw'>def</span> <span class='ensure_can_destroy_record identifier id'>ensure_can_destroy_record</span>
  <span class='deny_access identifier id'>deny_access</span> <span class='unless unless_mod kw'>unless</span> <span class='resource identifier id'>resource</span><span class='dot token'>.</span><span class='destroyable? fid id'>destroyable?</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="ensure_can_edit_record-instance_method">
  
    - (<tt>Object</tt>) <strong>ensure_can_edit_record</strong> 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


23
24
25</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/master_may_i/inherited_resources_extensions.rb', line 23</span>

<span class='def def kw'>def</span> <span class='ensure_can_edit_record identifier id'>ensure_can_edit_record</span>
  <span class='deny_access identifier id'>deny_access</span> <span class='unless unless_mod kw'>unless</span> <span class='resource identifier id'>resource</span><span class='dot token'>.</span><span class='editable? fid id'>editable?</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="ensure_can_show_record-instance_method">
  
    - (<tt>Object</tt>) <strong>ensure_can_show_record</strong> 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


19
20
21</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/master_may_i/inherited_resources_extensions.rb', line 19</span>

<span class='def def kw'>def</span> <span class='ensure_can_show_record identifier id'>ensure_can_show_record</span>
  <span class='deny_access identifier id'>deny_access</span> <span class='unless unless_mod kw'>unless</span> <span class='resource identifier id'>resource</span><span class='dot token'>.</span><span class='readable? fid id'>readable?</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Thu Dec  3 17:24:52 2009 by 
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
  0.4.0 (ruby-1.8.6).
</div>

  </body>
</html>